.class abstract Lcom/mobisage/android/g;
.super Lcom/mobisage/android/l;
.source "SourceFile"


# instance fields
.field private a:Lcom/mobisage/android/k;

.field private b:Ljava/lang/Integer;


# direct methods
.method public constructor <init>(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 24
    invoke-direct/range {p0 .. p5}, Lcom/mobisage/android/l;-><init>(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 25
    const/4 v0, 0x2

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p0, Lcom/mobisage/android/g;->b:Ljava/lang/Integer;

    .line 26
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 29
    invoke-direct {p0, p1, p2}, Lcom/mobisage/android/l;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 30
    const/4 v0, 0x2

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p0, Lcom/mobisage/android/g;->b:Ljava/lang/Integer;

    .line 31
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 19
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/mobisage/android/l;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 20
    const/4 v0, 0x2

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p0, Lcom/mobisage/android/g;->b:Ljava/lang/Integer;

    .line 21
    return-void
.end method

.method private a()V
    .locals 2

    .prologue
    .line 79
    iget-object v0, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    if-eqz v0, :cond_0

    .line 80
    invoke-static {}, Lcom/mobisage/android/R;->a()Lcom/mobisage/android/R;

    move-result-object v0

    iget-object v1, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    invoke-virtual {v0, v1}, Lcom/mobisage/android/R;->b(Lcom/mobisage/android/Q;)V

    .line 81
    :cond_0
    return-void
.end method

.method private a(I)V
    .locals 3
    .parameter

    .prologue
    .line 94
    iget-object v0, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    if-nez v0, :cond_0

    .line 95
    new-instance v0, Lcom/mobisage/android/k;

    iget-object v1, p0, Lcom/mobisage/android/g;->mainHandler:Landroid/os/Handler;

    invoke-direct {v0, v1}, Lcom/mobisage/android/k;-><init>(Landroid/os/Handler;)V

    iput-object v0, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    .line 99
    :goto_0
    iget-object v0, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    const-wide/16 v1, 0xf

    iput-wide v1, v0, Lcom/mobisage/android/k;->c:J

    .line 100
    invoke-static {}, Lcom/mobisage/android/R;->a()Lcom/mobisage/android/R;

    move-result-object v0

    iget-object v1, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    invoke-virtual {v0, v1}, Lcom/mobisage/android/R;->a(Lcom/mobisage/android/Q;)V

    .line 101
    return-void

    .line 97
    :cond_0
    invoke-static {}, Lcom/mobisage/android/R;->a()Lcom/mobisage/android/R;

    move-result-object v0

    iget-object v1, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    invoke-virtual {v0, v1}, Lcom/mobisage/android/R;->b(Lcom/mobisage/android/Q;)V

    goto :goto_0
.end method


# virtual methods
.method protected destoryAdView()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 49
    invoke-direct {p0}, Lcom/mobisage/android/g;->a()V

    .line 50
    iget-object v0, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    iput-object v1, v0, Lcom/mobisage/android/k;->a:Landroid/os/Handler;

    .line 51
    iput-object v1, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    .line 52
    invoke-super {p0}, Lcom/mobisage/android/l;->destoryAdView()V

    .line 53
    return-void
.end method

.method protected finalize()V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Throwable;
        }
    .end annotation

    .prologue
    .line 126
    invoke-super {p0}, Lcom/mobisage/android/l;->finalize()V

    .line 127
    return-void
.end method

.method public getAdRefreshInterval()Ljava/lang/Integer;
    .locals 1

    .prologue
    .line 34
    iget-object v0, p0, Lcom/mobisage/android/g;->b:Ljava/lang/Integer;

    return-object v0
.end method

.method protected initMobiSageAdView(Landroid/content/Context;)V
    .locals 0
    .parameter "context"

    .prologue
    .line 43
    invoke-super {p0, p1}, Lcom/mobisage/android/l;->initMobiSageAdView(Landroid/content/Context;)V

    .line 44
    invoke-virtual {p0}, Lcom/mobisage/android/g;->sendADRequest()V

    .line 45
    return-void
.end method

.method protected onLoadAdFinish()V
    .locals 4

    .prologue
    .line 111
    invoke-super {p0}, Lcom/mobisage/android/l;->onLoadAdFinish()V

    .line 112
    invoke-static {}, Lcom/mobisage/android/w;->a()Lcom/mobisage/android/w;

    move-result-object v0

    const-string v1, "intervalswitchtype"

    invoke-virtual {v0, v1}, Lcom/mobisage/android/w;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    .line 114
    iget-object v1, p0, Lcom/mobisage/android/g;->b:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-static {v1}, Lcom/mobisage/android/MobiSageEnviroment;->a(I)I

    move-result v1

    .line 116
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v2, 0x1

    if-ne v0, v2, :cond_2

    .line 117
    invoke-static {}, Lcom/mobisage/android/w;->a()Lcom/mobisage/android/w;

    move-result-object v0

    const-string v1, "intervaltime"

    invoke-virtual {v0, v1}, Lcom/mobisage/android/w;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 118
    :goto_0
    const/16 v1, 0x1c20

    if-ne v0, v1, :cond_0

    .line 119
    const/16 v0, 0xf

    invoke-direct {p0, v0}, Lcom/mobisage/android/g;->a(I)V

    .line 122
    :goto_1
    return-void

    .line 121
    :cond_0
    iget-object v1, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    if-nez v1, :cond_1

    new-instance v1, Lcom/mobisage/android/k;

    iget-object v2, p0, Lcom/mobisage/android/g;->mainHandler:Landroid/os/Handler;

    invoke-direct {v1, v2}, Lcom/mobisage/android/k;-><init>(Landroid/os/Handler;)V

    iput-object v1, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    :goto_2
    iget-object v1, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    int-to-long v2, v0

    iput-wide v2, v1, Lcom/mobisage/android/k;->c:J

    invoke-static {}, Lcom/mobisage/android/R;->a()Lcom/mobisage/android/R;

    move-result-object v0

    iget-object v1, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    invoke-virtual {v0, v1}, Lcom/mobisage/android/R;->a(Lcom/mobisage/android/Q;)V

    goto :goto_1

    :cond_1
    invoke-static {}, Lcom/mobisage/android/R;->a()Lcom/mobisage/android/R;

    move-result-object v1

    iget-object v2, p0, Lcom/mobisage/android/g;->a:Lcom/mobisage/android/k;

    invoke-virtual {v1, v2}, Lcom/mobisage/android/R;->b(Lcom/mobisage/android/Q;)V

    goto :goto_2

    :cond_2
    move v0, v1

    goto :goto_0
.end method

.method protected requestADFinish(Lcom/mobisage/android/b;)V
    .locals 0
    .parameter "action"

    .prologue
    .line 105
    invoke-direct {p0}, Lcom/mobisage/android/g;->a()V

    .line 106
    invoke-super {p0, p1}, Lcom/mobisage/android/l;->requestADFinish(Lcom/mobisage/android/b;)V

    .line 107
    return-void
.end method

.method protected requestADFromDE()Z
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 57
    invoke-direct {p0}, Lcom/mobisage/android/g;->a()V

    .line 59
    invoke-static {}, Lcom/mobisage/android/w;->a()Lcom/mobisage/android/w;

    move-result-object v0

    const-string v1, "intervalswitchtype"

    invoke-virtual {v0, v1}, Lcom/mobisage/android/w;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    iget-object v1, p0, Lcom/mobisage/android/g;->b:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-static {v1}, Lcom/mobisage/android/MobiSageEnviroment;->a(I)I

    move-result v1

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ne v0, v2, :cond_3

    invoke-static {}, Lcom/mobisage/android/w;->a()Lcom/mobisage/android/w;

    move-result-object v0

    const-string v1, "intervaltime"

    invoke-virtual {v0, v1}, Lcom/mobisage/android/w;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    :goto_0
    const/16 v1, 0x1c20

    if-ne v0, v1, :cond_1

    const/4 v0, 0x0

    :goto_1
    if-eqz v0, :cond_2

    .line 60
    invoke-super {p0}, Lcom/mobisage/android/l;->requestADFromDE()Z

    move-result v0

    .line 61
    :goto_2
    if-eqz v0, :cond_0

    .line 62
    const/16 v1, 0xf

    invoke-direct {p0, v1}, Lcom/mobisage/android/g;->a(I)V

    .line 63
    :cond_0
    return v0

    :cond_1
    move v0, v2

    .line 59
    goto :goto_1

    :cond_2
    move v0, v2

    goto :goto_2

    :cond_3
    move v0, v1

    goto :goto_0
.end method

.method public setAdRefreshInterval(Ljava/lang/Integer;)V
    .locals 0
    .parameter "adRefreshInterval"

    .prologue
    .line 38
    iput-object p1, p0, Lcom/mobisage/android/g;->b:Ljava/lang/Integer;

    .line 39
    return-void
.end method
